'use strict';
const {
    Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
    class userinfo extends Model {
        static associate(models) {
            // define association here
            // models.userinfo.belongsTo(models.account, { foreignKey: 'accid', targetKey: 'uuid' });
        }
    };
    userinfo.init({
        accid: DataTypes.UUID,
        nickname: DataTypes.STRING,
        avatar: DataTypes.STRING,
        address: DataTypes.STRING,
        email: DataTypes.STRING,
        describe: DataTypes.STRING,
        menus: DataTypes.STRING
    }, {
        sequelize,
        modelName: 'userinfo',
    });
    return userinfo;
};
